<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>新增鲜花</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" type="text/css" href="assets/css/flower.css">
</head>

<body>
<div class="content">
    <div class="left"></div>
    <div class="right">
        <div style="padding-left:200px;width: 600px;">
            <s:form action="addOrUpdateFlower" method="post"
                    enctype="multipart/form-data">
                <tr>
                    <td>

                    </td>
                    <td>
                        请在此输入新花品的信息
                    </td>
                </tr>
                <s:textfield label="品名" name="flower.flowername"/>
                <tr>
                    <td>
                        价格
                    </td>
                    <td>
                        <input type="text" name="flower.price"> <label>元</label>
                    </td>
                </tr>
                <s:action name="browseCatalog" executeResult="false">
                </s:action>
                <s:set value="#request.catalogs" id="catalog"/>
                <s:property value="#catalog.size"/>
                <s:select label="分类" list="#request.catalogs" listKey="catalogid"
                          listValue="catalogname" name="flower.catalog.catalogid"
                          value="%{#flower.catalog.catalogid}"/>
                <s:file name="upload" label="图片"/>
                <s:submit value="添加"/>
            </s:form>
        </div>
    </div>
</div>
<jsp:include page="foot.jsp"/>
</body>
</html>
